﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SaleManagement.Entity;
using SaleManagement.Model;

namespace SaleManagement.Services.Mapping
{
    public class PostMapping
    {
        public static Post ConvertToEntity(ViewModelPost model)
        {
            Post entity = new Post();
            entity.Id = model.Id;
            entity.Image = model.Image;

            entity.Status = model.Status;
            return entity;
        }
    }
}
